# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=remind
pkgver=04.00.01
pkgrel=0
pkgdesc="Sophisticated calendar and alarm program"
url="https://dianne.skoll.ca/projects/remind/"
arch="all"
license="GPL-2.0"
options="!check"
subpackages="$pkgname-doc tkremind::noarch"
source="https://dianne.skoll.ca/projects/remind/download/remind-$pkgver.tar.gz"
build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

tkremind() {
	depends="remind tk tcl-lib"
	local dest="$subpkgdir"/usr/bin
	mkdir -p "$dest"
	mv "$pkgdir"/usr/bin/tkremind "$dest"
}

sha512sums="
c1d0f3739990fead7979594f74c5bfc94b8540ef81efe38b0e01b04df2011d89e80aeacbfe25b48dee291e7e3dac66d95e0ee4a1009e014b2a50a5797ff4258a  remind-04.00.01.tar.gz
"
